import yaml
import os
from conf.readConfig import ReadConfig

yaml_path = os.path.join(ReadConfig().get_path("data_path"),"place_order.yaml")

class ReadYamlList():
    def read_yaml_list(self):
        """
        读取yaml，返回列表形式
        :param case_row:
        :return:
        """
        with open(yaml_path,encoding='utf8') as yaml_file:
            yaml_txt = yaml_file.read()
            yaml_dict = yaml.load(yaml_txt,Loader=yaml.FullLoader)
            print(yaml_dict)
            return yaml_dict

if __name__ == "__main__":
    ReadYamlList().read_yaml_list()